package Model;

import View.ObjectViews.PropietarioView;

public class Propietario 
{
	//Atributos
	private String razonSocial;
	private String contacto;
	private String cuit;
	
	//Getters
	public String getRazonSocial() 
	{
		return razonSocial;
	}
	public String getContacto() 
	{
		return contacto;
	}
	public String getCuit() 
	{
		return cuit;
	}
	
	//Setters
	public void setRazonSocial(String razonSocial) 
	{
		this.razonSocial = razonSocial;
	}
	public void setContacto(String contacto) 
	{
		this.contacto = contacto;
	}
	public void setCuit(String cuit) 
	{
		this.cuit = cuit;
	}
	
	public Propietario(String razonSocial, String contacto, String cuit)
	{
		this.razonSocial = razonSocial;
		this.contacto = contacto;
		this.cuit = cuit;
	}
	
	public boolean isEquals(String cuit)
	{
		return (this.cuit.equals(cuit));
	}
	
	//View getter
	public PropietarioView getView()
	{
		PropietarioView view = new PropietarioView();
		view.setCuit(this.getCuit());
		view.setRazonSocial(this.getRazonSocial());
		
		return view;
	}
}
